#ifndef BACKUPPROGRESSWIDGET_H
#define BACKUPPROGRESSWIDGET_H

#include <QtWidgets>

class BackupProgressWidget : public QWidget
{
    Q_OBJECT
public:
    explicit BackupProgressWidget(QWidget *parent = 0);
private:
    QTextEdit *activityMessages;
    QTextEdit *taskProgressMessages;
    QLabel *progressLabel;
    QProgressBar *progress;
    QPushButton *pauseButton;

    quint64 currentMaximum;
    quint64 currentValue;

signals:
    void pauseButtonClicked();
    void stopButtonClicked();
    
public slots:
    void onProgressMessageChanged(const QString &activityMessages);
    void onProgressMaximumChanged(quint64 maximum);
    void onProgressValueAdd(quint64 value);
    void onNewMessage(const QString &activityMessages);
    void onPauseButtonClicked();
    void onStopButtonClicked();
};

#endif // BACKUPPROGRESSWIDGET_H
